package com.czy.owner.entity;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by yang on 2018/3/26.
 */

public class StorePackageEntity {
    /**
     * flag : true
     * data : [{"note":"","ownerShowFlag":"true","createUserId":32056,"originalPrice":0.5,"isBindGiving":"false","fixTimeType":0,"storeId":442,"packageType":"store","servicePackageId":822,"employeesName":"13739289059","validityType":0,"fixTimeValue":0,"isBindPush":"false","giveAmount":0.5,"createTime":1519265668824,"price":0.1,"logo":"","startTime":0,"itemList":[{"itemId":"2810","itemName":"服务4","itemType":"service","price":40,"specValue":null,"count":1,"unlimitedCount":"false","logo":"","servicePackageItemId":5593,"servicePackageId":822,"specGroupKey":""},{"itemId":"2641","itemName":"服务1","itemType":"service","price":2,"specValue":null,"count":6,"unlimitedCount":"false","logo":"","servicePackageItemId":5594,"servicePackageId":822,"specGroupKey":""}],"packageName":"办卡","endTime":0,"singleUsrMaxCount":10,"status":"normal"},{"note":"","ownerShowFlag":"true","createUserId":32056,"originalPrice":1,"isBindGiving":"false","fixTimeType":0,"storeId":442,"packageType":"store","servicePackageId":776,"employeesName":"13739289059","validityType":0,"fixTimeValue":0,"isBindPush":"false","giveAmount":1,"createTime":1511316703471,"price":0.01,"logo":"http://118.178.188.69:80/res/download/16229","startTime":0,"itemList":[{"itemId":"2727","itemName":"服务3","itemType":"service","price":200,"specValue":null,"count":3,"unlimitedCount":"false","logo":"未设置","servicePackageItemId":5717,"servicePackageId":776,"specGroupKey":""}],"packageName":"测试办卡","endTime":0,"singleUsrMaxCount":9999,"status":"normal"},{"note":"","ownerShowFlag":"true","createUserId":32056,"originalPrice":278,"isBindGiving":"false","fixTimeType":0,"storeId":442,"packageType":"store","servicePackageId":734,"employeesName":"13739289059","validityType":0,"fixTimeValue":0,"isBindPush":"false","giveAmount":0,"createTime":1519265595157,"price":0,"logo":"","startTime":0,"itemList":[{"itemId":"2810","itemName":"服务4","itemType":"service","price":40,"specValue":null,"count":1,"unlimitedCount":"true","logo":"","servicePackageItemId":5586,"servicePackageId":734,"specGroupKey":""},{"itemId":"2641","itemName":"服务1","itemType":"service","price":2,"specValue":null,"count":1,"unlimitedCount":"true","logo":"","servicePackageItemId":5587,"servicePackageId":734,"specGroupKey":""},{"itemId":"2727","itemName":"服务3","itemType":"service","price":200,"specValue":null,"count":1,"unlimitedCount":"true","logo":"","servicePackageItemId":5588,"servicePackageId":734,"specGroupKey":""},{"itemId":"3872","itemName":"思思品牌1就放假大家大结局大家电脑你才能处男处女烦恼你才能处","itemType":"goods","price":4,"specValue":"规格:无规格","count":4,"unlimitedCount":"true","logo":"http://118.178.188.69:80/res/download/10596","servicePackageItemId":5589,"servicePackageId":734,"specGroupKey":"f838854c31324330854c7833ad3f5c2b"},{"itemId":"3873","itemName":"王洋专业商品","itemType":"goods","price":5,"specValue":"规格:无规格","count":4,"unlimitedCount":"true","logo":"http://118.178.188.69:80/res/download/10597","servicePackageItemId":5590,"servicePackageId":734,"specGroupKey":"0a05f58867d541d3b02e4a1e3d188e9c"}],"packageName":"划卡记录测试","endTime":0,"singleUsrMaxCount":1,"status":"normal"},{"note":"测试商品推送","ownerShowFlag":"true","createUserId":32056,"originalPrice":200,"isBindGiving":"false","fixTimeType":0,"storeId":442,"packageType":"store","servicePackageId":483,"employeesName":"13739289059","validityType":0,"fixTimeValue":0,"isBindPush":"false","giveAmount":0,"createTime":1519265859812,"price":10,"logo":"http://118.178.188.69:80/res/download/11722","startTime":0,"itemList":[{"itemId":"2641","itemName":"服务1","itemType":"service","price":2,"specValue":null,"count":1,"unlimitedCount":"false","logo":"","servicePackageItemId":5607,"servicePackageId":483,"specGroupKey":""},{"itemId":"3873","itemName":"王洋专业商品","itemType":"goods","price":5,"specValue":"规格:无规格","count":1,"unlimitedCount":"false","logo":"http://118.178.188.69:80/res/download/10597","servicePackageItemId":5608,"servicePackageId":483,"specGroupKey":"0a05f58867d541d3b02e4a1 e3d188e9c"},{"itemId":"3872","itemName":"思思品牌1","itemType":"goods","price":4,"specValue":"规格:无规格","count":1,"unlimitedCount":"false","logo":"http://118.178.188.69:80/res/download/10596","servicePackageItemId":5609,"servicePackageId":483,"specGroupKey":"f838854c31324330854c7833ad3f5c2b"}],"packageName":"王洋商品","endTime":0,"singleUsrMaxCount":10,"status":"normal"}]
     * errorCode : 0
     * serverTime : 1522044847072
     * exp :
     */

    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean extends AbstractExpandableItem<EnpandableStorePackageEntity> implements MultiItemEntity {
        /**
         * note :
         * ownerShowFlag : true
         * createUserId : 32056
         * originalPrice : 0.5
         * isBindGiving : false
         * fixTimeType : 0
         * storeId : 442
         * packageType : store
         * servicePackageId : 822
         * employeesName : 13739289059
         * validityType : 0
         * fixTimeValue : 0
         * isBindPush : false
         * giveAmount : 0.5
         * createTime : 1519265668824
         * price : 0.1
         * logo :
         * startTime : 0
         * itemList : [{"itemId":"2810","itemName":"服务4","itemType":"service","price":40,"specValue":null,"count":1,"unlimitedCount":"false","logo":"","servicePackageItemId":5593,"servicePackageId":822,"specGroupKey":""},{"itemId":"2641","itemName":"服务1","itemType":"service","price":2,"specValue":null,"count":6,"unlimitedCount":"false","logo":"","servicePackageItemId":5594,"servicePackageId":822,"specGroupKey":""}]
         * packageName : 办卡
         * endTime : 0
         * singleUsrMaxCount : 10
         * status : normal
         */

        private String note;
        private String ownerShowFlag;
        private int createUserId;
        private String isBindGiving;
        private int fixTimeType;
        private int storeId;
        private String packageType;
        private int servicePackageId;
        private String employeesName;
        private int validityType;
        private int fixTimeValue;
        private long startTime;
        private long endTime;
        private double price;
        private double originalPrice;
        private double giveAmount;
        private String isBindPush;
        private long createTime;
        private String logo;
        private String packageName;
        private int singleUsrMaxCount;
        private String status;
        private List<ItemListBean> itemList;

        @Override
        public int getItemType() {
            return 0;
        }

        @Override
        public int getLevel() {
            return 0;
        }

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public String getOwnerShowFlag() {
            return ownerShowFlag;
        }

        public void setOwnerShowFlag(String ownerShowFlag) {
            this.ownerShowFlag = ownerShowFlag;
        }

        public int getCreateUserId() {
            return createUserId;
        }

        public void setCreateUserId(int createUserId) {
            this.createUserId = createUserId;
        }

        public double getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(double originalPrice) {
            this.originalPrice = originalPrice;
        }

        public String getIsBindGiving() {
            return isBindGiving;
        }

        public void setIsBindGiving(String isBindGiving) {
            this.isBindGiving = isBindGiving;
        }

        public int getFixTimeType() {
            return fixTimeType;
        }

        public void setFixTimeType(int fixTimeType) {
            this.fixTimeType = fixTimeType;
        }

        public int getStoreId() {
            return storeId;
        }

        public void setStoreId(int storeId) {
            this.storeId = storeId;
        }

        public String getPackageType() {
            return packageType;
        }

        public void setPackageType(String packageType) {
            this.packageType = packageType;
        }

        public int getServicePackageId() {
            return servicePackageId;
        }

        public void setServicePackageId(int servicePackageId) {
            this.servicePackageId = servicePackageId;
        }

        public String getEmployeesName() {
            return employeesName;
        }

        public void setEmployeesName(String employeesName) {
            this.employeesName = employeesName;
        }

        public int getValidityType() {
            return validityType;
        }

        public void setValidityType(int validityType) {
            this.validityType = validityType;
        }

        public int getFixTimeValue() {
            return fixTimeValue;
        }

        public void setFixTimeValue(int fixTimeValue) {
            this.fixTimeValue = fixTimeValue;
        }

        public String getIsBindPush() {
            return isBindPush;
        }

        public void setIsBindPush(String isBindPush) {
            this.isBindPush = isBindPush;
        }

        public double getGiveAmount() {
            return giveAmount;
        }

        public void setGiveAmount(double giveAmount) {
            this.giveAmount = giveAmount;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public long getStartTime() {
            return startTime;
        }

        public void setStartTime(long startTime) {
            this.startTime = startTime;
        }

        public String getPackageName() {
            return packageName;
        }

        public void setPackageName(String packageName) {
            this.packageName = packageName;
        }

        public long getEndTime() {
            return endTime;
        }

        public void setEndTime(long endTime) {
            this.endTime = endTime;
        }

        public int getSingleUsrMaxCount() {
            return singleUsrMaxCount;
        }

        public void setSingleUsrMaxCount(int singleUsrMaxCount) {
            this.singleUsrMaxCount = singleUsrMaxCount;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public List<ItemListBean> getItemList() {
            return itemList;
        }

        public void setItemList(List<ItemListBean> itemList) {
            this.itemList = itemList;
        }

        public static class ItemListBean implements MultiItemEntity{
            /**
             * itemId : 2810
             * itemName : 服务4
             * itemType : service
             * price : 40.0
             * specValue : null
             * count : 1
             * unlimitedCount : false
             * logo :
             * servicePackageItemId : 5593
             * servicePackageId : 822
             * specGroupKey :
             */

            private String itemId;
            private String itemName;
            private String itemType;
            private double price;
            private String specValue;
            private int count;
            private boolean unlimitedCount;
            private String logo;
            private int servicePackageItemId;
            private int servicePackageId;
            private String specGroupKey;

            public String getItemId() {
                return itemId;
            }

            public void setItemId(String itemId) {
                this.itemId = itemId;
            }

            public String getItemName() {
                return itemName;
            }

            public void setItemName(String itemName) {
                this.itemName = itemName;
            }

            public String getMItemType() {
                return itemType;
            }

            public void setMItemType(String itemType) {
                this.itemType = itemType;
            }

            @Override
            public int getItemType() {
                return 1;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getSpecValue() {
                return specValue;
            }

            public void setSpecValue(String specValue) {
                this.specValue = specValue;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public boolean isUnlimitedCount() {
                return unlimitedCount;
            }

            public void setUnlimitedCount(boolean unlimitedCount) {
                this.unlimitedCount = unlimitedCount;
            }

            public String getLogo() {
                return logo;
            }

            public void setLogo(String logo) {
                this.logo = logo;
            }

            public int getServicePackageItemId() {
                return servicePackageItemId;
            }

            public void setServicePackageItemId(int servicePackageItemId) {
                this.servicePackageItemId = servicePackageItemId;
            }

            public int getServicePackageId() {
                return servicePackageId;
            }

            public void setServicePackageId(int servicePackageId) {
                this.servicePackageId = servicePackageId;
            }

            public String getSpecGroupKey() {
                return specGroupKey;
            }

            public void setSpecGroupKey(String specGroupKey) {
                this.specGroupKey = specGroupKey;
            }
        }
    }
}
